<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/17
  Time: 17:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="content-type" content="text/html" ;charset="gb2312">
    <title>CoolMeeting会议管理系统</title>
    <link rel="stylesheet" href="styles/common.css" />
</head>

<body>

<div class="page-content">
    <div class="content-nav">
        会议预定 > 查看会议室
    </div>
    <table class="listtable">
        <caption>所有会议室:</caption>
        <tr class="listheader">
            <th>门牌编号</th>
            <th>会议室名称</th>
            <th>容纳人数</th>
            <th>当前状态</th>
            <th>操作</th>
        </tr>
        <c:forEach var="room" items='${requestScope.list}'>
            <tr>
                <!-- 门牌编号 -->
                <td>${room.roomcode}</td>
                <!-- 会议室名称 -->
                <td>${room.roomname}</td>
                <!-- 容纳人数 -->
                <td>${room.roomcapacity }</td>
                <!-- 当前状态 -->
                <!--0表示可用  -->
                <c:if test="${room.roomstatus eq 1}">
                    <td>可用</td>
                </c:if>
                <!--1表示不可用  -->
                <c:if test="${room.roomstatus eq 2}">
                    <td>不可用</td>
                </c:if>
                <c:if test="${room.roomstatus eq 3}">
                    <td>删除</td>
                </c:if>
                <td>
                    <!-- 操作 --> <a class="clickbutton" href="SelectByroomidServlet?roomid=${room.roomid}">查看详情</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</div>

</body>

</html>
